package com.maiji.cloud.service;

import com.maiji.cloud.entities.shopingmall.GoodsCollection;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.shopingmall.GoodsResData;

import java.util.List;

public interface GoodsCollectionService extends IService<GoodsCollection> {

    public static final String REDISNAMESPACE = "goodsCollection";

    GoodsCollection selectOneByRedis(String goodsId, String userId);

    Boolean isCollection(String goodsId, String user_id);

    BaseResDto collectionGoodsById(String goodsId, String token);

    BaseResDto cancelCollectionGoods(List<String> goodsIds, String token);

    BaseMetaResDto<List<GoodsResData>> findAllGoodsCollection(String token, ReqMetaData reqMetaData);

}
